package de.hwr.sudokuspielehr.io;

import static org.junit.Assert.assertEquals;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

import org.junit.Test;

/**
 * 
 * @author J. Reischauer
 * 
 */
public class TestReader {
	@Test
	public void test_read() throws IOException {
		String fileUnderTestName = "TestReaderTestFile.txt";
		File fileUnderTest = new File(fileUnderTestName);

		List<String> expected = Arrays.asList("Hello World!", "This is a text.");
		List<String> actual = Reader.read(fileUnderTest);

		assertEquals(expected, actual);
	}
}
